<?php include $this->getViewFile('/common/Head'); ?>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
   <?php include $this->getViewFile('/common/Nav') ?>
   <form class="J_ajaxForm" action="<?php echo AdminBase::U("edit") ?>" method="post" id="myform">
   <div class="h_a">基本属性</div>
   <div class="table_full">
   <table width="100%" class="table_form contentWrap">
        <tbody>
          <tr>
            <th width="80">广告图片标题</th>
            <td><input type="test" name="link_title" class="input length_3" value="<?php echo $data->link_title?>" placeholder="广告名称"></td>
          </tr>
          <tr>
            <th>广告地址</th>
            <td><input type="test" name="link" class="input length_6" value="<?php echo $data->link?>" placeholder="广告链接地址"></td>
          </tr>
          <tr>
            <th>图片</th>
            <td><input type="text" name="link_img" class="input length_6 " value="<?php echo $data->link_img?>" placeholder="广告图片地址"></td>
          </tr>
          <tr>
            <th>开始时间</th>
            <td><input type="text" name="start_time" class="input length_2 J_datetime" value="<?php echo date('Y-m-d H:i',$data->start_time)?>" placeholder="选择起始时间"></td>
          </tr>
          <tr>
            <th>结束时间</th>
            <td><input type="text" class="input length_2 J_datetime" name="end_time" value="<?php echo date('Y-m-d H:i',$data->end_time)?>" placeholder="选择结束时间"></td>
          </tr>
          <tr>
            <th>宽度</th>
            <td><input type="text" name="width" class="input length_1 " value="<?php echo (int)$data->width?>" placeholder="宽度"> px</td>
          </tr>
          <tr>
            <th>高度</th>
            <td><input type="text" name="height" class="input length_1 " value="<?php echo (int)$data->height?>" placeholder="高度"> px</td>
          </tr>
          <tr>
            <th>描述</th>
            <td><textarea type="text" name="description" cols="60" rows="6"><?php echo $data->description?></textarea></td>
          </tr>
          <tr>
            <th>是否启用</th>
            <td><?php echo Form::radio(array(1=>'启用',0=>'禁用'),$data->disabled,'name="disabled"') ?></td>
          </tr>
          <tr>
            <th>类型</th>
            <td><?php echo Form::select(AdvertisingModel::getTypeHtml(),$data->type,'name="type"') ?></td>
          </tr>
          <tr>
            <th>附加信息</th>
            <td><input type="text" name="attach" class="input length_6 " value="<?php echo $data->attach?>" placeholder="附加信息"></td>
          </tr>
          <tr>
            <th>排序</th>
            <td><input type="text" name="listorder" class="input length_1 " value="<?php echo $data->listorder?>" placeholder="排序"></td>
          </tr>
        </tbody>
      </table>
   </div>
   <div class="btn_wrap1">
      <div class="btn_wrap_pd">             
        <input type="hidden" name="id" value="<?php echo $data->id?>">
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">编辑</button>
      </div>
    </div>
    </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>